/*
* 账户类型：accountType 10:签约用户；20:普通用户;30认证用户;39普通会员-分销;40分销用户;
* 平台类型：platform 10-签约 20-普通 30-分销
* 根据账号转换*/
export const setPlatformFn = (vuex_memberInfo) => {
  let platform = 20
  if (vuex_memberInfo && vuex_memberInfo.length > 0) {
    switch (Number(vuex_memberInfo.accountType)) {
      case 10:
        platform = 10
        break
      case 20:
        platform = 20
        break
      case 30:
        platform = 20
        break
      case 39:
        platform = 30
        break
      case 40:
        platform = 30
        break
      default:
        platform = 20
        break
    }
  }
  return platform
}
